﻿using System;
using System.Configuration;
using System.IO;
using System.Windows.Forms;

namespace StockAnalyzer.Store
{
    static class Utility
    {
        static public string TargetPath
        {
            get
            {
                string path = Application.StartupPath + "\\Out";
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }
                return path;
            }
        }

        static public Int64 VolumeFilter
        {
            get
            {
                try
                {
                    return Int64.Parse(ConfigurationManager.AppSettings["VolumeFilter"]);
                }
                catch (Exception)
                {
                    return 500000;
                }
            }
        }
    }
}